import { service } from './request.js'

export default {
  //查询list
  fetchList(data) {
    return service({
      url: `lyitech/hire/equipment/list`,
      method: 'get',
      data,
    })
  },
  //新增
  save(data) {
    return service({
      url: `lyitech/hire/equipment/save`,
      method: 'post',
      data,
    })
  },
  //查看
  check(id) {
    return service({
      url: `lyitech/hire/equipment/info/${id}`,
      method: 'get',
    })
  },

  //编辑
  update(data) {
    return service({
      url: `lyitech/hire/equipment/update`,
      method: 'post',
      data,
    })
  },
  //删除
  delete(data) {
    return service({
      url: `lyitech/hire/equipment/delete`,
      method: 'post',
      data,
    })
  },
  //修改状态
  editStatus(data) {
    return service({
      url: `lyitech/hire/equipment/editStatus`,
      method: 'post',
      data,
    })
  },
  // 获取当前用户有权限的食堂组织
  filterAreaSelect() {
    return service({
      url: `/lyitech/hire/sysuserarea/select`,
      method: 'post',
    })
  },
  // 获取消费时段、消费等级list
  fetchConsumptionSelect() {
    return service({
      url: `/lyitech/hire/consumptioncontent/select`,
      method: 'post',
    })
  },
}
